import styled from "styled-components";
export const HeaderWrapper = styled.div`
  height: 75px;
  background-color: #242424;

  .content {
    height: 70px;
    display: flex;
    justify-content: space-between;
  }
  .divider {
    height: 5px;
    background-color: #c20c0c;
  }
`

export const HeaderLeft = styled.div`
  display: flex;
  .logo {
    width: 176px;
    height: 69px;
    background-position: 0 0; //相当于让图片顶着左上对齐
    text-indent: -9999px;//一般我们布局图标时，会使用图片设置为对象背景，然后使用a超链接放文字，如果不设置text-indent:-999px这样图片背景上就能看见超链接文字，但是我们只想显示背景图片又要有超链接，
  }
  .select-list {
    display: flex;
    font-size: 14px;
    line-height: 70px;
  }
  .select-item {
    position: relative;
    a {
      display: block;
      padding: 0 20px;
      color: #ccc;
    }

    //结构伪类选择最后一个a元素
    :last-of-type a {
      position:relative;
      ::after {
        position: absolute;
        content: "";//必须要写content才能设置定位 设置宽度和大小
        width: 28px;
        height: 19px;
        background-image: url(${require("../../assets/img/sprite_01.png")});
        background-position: -190px 0 ;
        top: 20px;
        right: -15px;
      }
    }

    &:hover a, a.active {
      //鼠标经过的时候哪个链接活跃显示效果
      color:#fff;
      background: #000;
      text-decoration: none;
    }

    .active .icon {
      //星体图标hot
      position: absolute;
      display: inline-block;
      width: 12px;
      height: 7px;
      bottom: -1px;
      left: 50px;
      transform: translate(-50%, 0);
      background-position:-226px 0;
    }
  }
  
`

export const HeaderRight = styled.div`
  display: flex;
  align-items: center;
  color: #ccc;
  font-size: 12px;

  .search {
    width: 158px;
    height: 32px;
    border-radius: 16px;

    input {
      &::placeholder {
        font-size: 12px;
      }
    }
  }

  .center {
    width: 90px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #666;
    border-radius: 16px;
    margin: 0 16px;
    background-color: transparent;
  }  
  a {
    color:#ccc;
    text-decoration: none;
  }
  &:hover a {
    color:#fff
  }
  div {
    cursor:pointer;
  }
`